<aside class="main-sidebar" data-th-fragment="nav">
    <section class="sidebar">
        <ul class="sidebar-menu" data-widget="tree" id="sidebar-menu">

            <script id="updateMenu" type="text/html">
                <li class="header">系统菜单</li>
                    <%for(var i in data){%>
                    <%if(data[i].children.length<=0){%>
            <li><a class="menuItem" href="<%=data[i].url%>"><i class="fa <%=data[i].iconurl%>"></i><span><%=data[i].text%></span></a></li>
                    <%}else{%>
                <li class="treeview">
                    <a href="javascript:void(0)"><i class="fa <%=data[i].iconurl%>"></i>
                        <span><%=data[i].text%></span>
                        <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                    </a>
                    <ul class="treeview-menu">
                        <%for(var j in data[i].children){%>
                        <li><a class="menuItem" href="<%=data[i].children[j].url%>"><i class="fa <%=data[i].children[j].iconurl%>"></i><%=data[i].children[j].text%></a></li>
                        <%}%>
                    </ul>
                </li>
            <!--<li><a class="menuItem log" href="/goLogPage"><i class="fa fa-address-card"></i><span>日志管理</span></a></li>
            <li><a class="menuItem tool" href="/tools"><i class="fa fa-wrench"></i><span>小工具</span></a></li>
            <li><a class="menuItem" href="/goCallRecordsPage"><i class="fa fa-volume-control-phone"></i><span>通话记录管理</span></a></li>
            <li><a class="menuItem warn" href="/goAlarmLog"><i class="fa fa-bell"></i><span>告警管理</span></a></li>
            <li class="treeview">
                <a href="javascript:void(0)"><i class="fa fa-cog"></i>
                    <span>系统管理</span>
                    <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                </a>
                <ul class="treeview-menu">
                    <li><a class="menuItem modify" href="/updatePwd"><i class="fa fa-key"></i>修改密码</a></li>
                    <li><a class="menuItem" href="/users"><i class="fa fa-users"></i>用户管理</a></li>
                    <li><a class="menuItem" href="/roles"><i class="fa fa-user-plus"></i>角色管理</a></li>
                    <li><a class="menuItem" href="/department"><i class="fa fa-sitemap"></i>部门管理</a></li>
                    <li><a class="menuItem" href="/menus"><i class="fa fa-th"></i>菜单管理</a></li>
                    <li><a class="menuItem" href="/dataDictionary"><i class="fa fa-database"></i>数据字典</a></li>
                    <li><a class="menuItem" href="/goPositionArea"><i class="fa fa-map"></i>辖区管理</a></li>
                    <li><a class="menuItem" href="/alarmEnterAreaController/goPage"><i class="fa fa-map-marker"></i>指定地点管理</a></li>
                </ul>
            </li>-->
                <%}%>
                <%}%>
            </script>
        </ul>
    </section>
</aside>